package xx.iverson.school_manage.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xx.iverson.school_manage.entity.LogEntry;
import xx.iverson.school_manage.service.LogsService;

import javax.annotation.Resource;
import java.util.List;

/**
 * xx.iverson.school_manage.controller.LogsController
 * <p>
 * on 2024/9/15
 *
 * @author weijx
 */
@RestController
public class LogsController {
    @Resource
    private LogsService logsService;

    @RequestMapping("getLogs")
    public List<LogEntry> getLogs() {
        return logsService.getLogs();
    }
}
